package com.zyh.inner;

public class InnerClassDemo4 {
    public static void main(String[] args) {
        Outer3 outer3 = new Outer3();
        System.out.println(outer3.a);
        outer3.m1();
        System.out.println("--------------");
        Outer3.Inner3 inner3 = new Outer3.Inner3();
        System.out.println(inner3.num);
        Outer3.Inner3.eat();
    }
}

class Outer3 {
    public int a = 10;

    public void m1() {
        System.out.println("外部的m1方法");
    }

    static class Inner3 {
        public int num = 20;

        public void m1() {
            System.out.println("内部类的m1方法");
        }

        public static void eat() {
            System.out.println("静态");
        }
    }
}


